Contents | Index | < Browse | Browse >

LETTERgmtimeULETTER Unpacks the Greenwich Mean Time.

Overview
#include <time.h>

t = gmtime (tp);

struct tm *t;
const time_t tp;

Portability
ANSI

Description
This function converts a time specification from its long integer (time_t) form, which represents the number of seconds since 00:00:00 January 1, 1970 and is eg. returned by time, into a tm structure. Note that the tm structure returned is shared among other time functions and should thus be used immediately after calling gmtime.

Returns
A pointer to a "tm" structure.